#!/usr/bin/env python3
# -*- coding:utf-8 -*-

# https://blog.csdn.net/zengxiantao1994/article/details/76588580
# Python绘图Turtle库详解

import turtle


# 太阳花
def sun_flower():
    # 同时设置pencolor=color1, fillcolor=color2
    printer = turtle.Turtle()
    printer.color("red", "yellow")

    printer.begin_fill()
    for _ in range(50):
        printer.forward(200)
        printer.left(170)

    printer.end_fill()

    turtle.Screen().mainloop()


def main():
    sun_flower()


if __name__ == "__main__":
    main()
